using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class UI_MainMenu_教学 : MonoBehaviour
{
	public Button _Btn_教学;

	public CanvasGroup _CG;

	private bool _IsLook;

	private void Start()
	{
		_CG.alpha = 0f;
		_CG.blocksRaycasts = false;
		_CG.transform.localScale = Vector3.zero;
		_IsLook = false;
		_Btn_教学.onClick.AddListener(delegate
		{
			if (_IsLook)
			{
				_CG.DOFade(0f, 0.25f).SetUpdate(isIndependentUpdate: true);
				_CG.transform.DOScale(0f, 0.25f).SetUpdate(isIndependentUpdate: true);
			}
			else
			{
				_CG.DOFade(1f, 0.25f).SetUpdate(isIndependentUpdate: true);
				_CG.transform.DOScale(1f, 0.25f).SetUpdate(isIndependentUpdate: true);
			}
			_IsLook = !_IsLook;
		});
	}
}
